package com.crm.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

/**
 * @description: 用户添加对象
 * @date 2024/6/7 16:43
 * @version 1.0
 */
@Data
@Schema(description = "用户添加")
public class UserSaveDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "账号")
    @NotBlank(message = "账号不能为空")
    private String userName;

    @Schema(description = "昵称")
    @NotBlank(message = "昵称不能为空")
    private String fullName;

    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(description = "邮箱")
    @Email
    private String email;

    @Schema(description = "手机号")
    private  String phone;

    @Schema(description = "部门id")
    private Long departmentId;
}